package com.sneaker.shower.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@ApiModel(value = "商品详情", description = "每双鞋子的订单下面，至少有一个商品DTO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GoodsItemDTO {

    private String guid;

    @ApiModelProperty("对应的产品guid")
    private String productGuid;

    @ApiModelProperty("商品名字，要查询到最上层分类")
    private String productName;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("商品数量")
    private Integer count = 1;

    @ApiModelProperty("订单guid")
    private Long subOrderGuid;

    @ApiModelProperty("是否删除该商品，true 是 false 否")
    private Boolean isDelete;

    @ApiModelProperty("0球鞋清洗， 1球鞋修复")
    private Integer type;

}
